package org.dromara.mall.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.tenant.core.TenantEntity;

import java.io.Serial;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 全部订单对象 mall_orders
 *
 * @author Mr Lei
 * @date 2024-05-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("mall_orders")
public class MallOrders extends TenantEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId(value = "id")
    private Long id;

    /*卖家ID*/
    private String tenantId;
    /* 用户ID*/
    private Long userId;

    /* 优惠券日志ID */
    private Long couponId;

    /* 拼团日志ID*/
    private Long collectiveId;

    /* 订单号*/
    private String orderNo;

    /* 商品金额*/
    private BigDecimal totalPrice;

    /*实际支付金额*/
    private BigDecimal totalPayPrice;

    /*余额支付金额*/
    private BigDecimal orderBalance;

    /* 运费*/
    private BigDecimal postFee;

    /*优惠金额*/
    private BigDecimal couponMoney;

    /*订单状态*/
    private Integer status;

    /* 结算状态*/
    private Integer isSettlement;

    /* 快递订单号 */
    private String deliveryNo;

    /*快递公司编码 */
    private String deliveryCode;

    /* 收货人名*/
    private String receiveName;

    /* 收件人手机*/
    private String receiveTel;

    /* 地址信息*/
    private String receiveArea;

    /* 详细地址信息 */
    private String receiveAddress;

    /*支付方式*/
    private String paymentName;

    /*支付时间*/
    private Date payTime;

    /* 发货时间 */
    private Date deliveryTime;

    /*确认收货时间*/
    private Date receiptTime;

    /* 评论时间 */
    private Date commentTime;

    /*买家备注*/
    private String remark;

}
